<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>auto</title>
</head>
<body>
    
</body>
<script>
    let someApp = document.createElement('a');
    
    someApp.setAttribute('target','blank');
    someApp.setAttribute('href','www.baidu.com');
    someApp.click()
</script>
</html>